import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class Dormitory implements Serializable {
    private int number;
    private List<Student> students;
    private int cleanlinessScore;
    private List<String> warnings;

    public void setNumber(int number) {
        this.number = number;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public void setWarnings(List<String> warnings) {
        this.warnings = warnings;
    }

    public Dormitory(int number, int bedCount) {
        this.number = number;
        this.students = new ArrayList<>();
        this.cleanlinessScore = 0;
        this.warnings = new ArrayList<>();

        for (int i = 0; i < bedCount; i++) {
            students.add(null);
        }
    }

    public int getNumber() {
        return number;
    }

    public List<Student> getStudents() {
        return students;
    }

    public int getCleanlinessScore() {
        return cleanlinessScore;
    }

    public void setCleanlinessScore(int cleanlinessScore) {
        this.cleanlinessScore = cleanlinessScore;
    }

    public List<String> getWarnings() {
        return warnings;
    }

    public void addWarning(String warning) {
        warnings.add(warning);
    }
}
